<?php

/* CHILD THEME LAYOUT CONTROL
- Using some Wonderflux template hooks, we insert the relevant CSS into our layout
- This controls sizing of main content area and sidebar


- Process is simple
  - Create unique named PHP function
  - use add_action ( 'wonderflux_template_hook_name', 'your_php_function');
  - Optional third argument for priority (10 high, 1 low)

See wp-content/themes/wonderflux/wf-includes/wf-display-hooks.php for all available hooks
See wp-content/themes/wonderflux/index.php or page.php (or one of the other 'standard' template files in wonderflux to see where the hooks appear)

*/

/**
*
* @since 0.1
* @updated 0.2
*
* Position content
*
*/
function my_wf_css_content() {

	wflux_display::wf_css('size=three_quarter&id=content&last=y&divoutput=TRUE');

}
add_action( 'wfmain_before_all_content', 'my_wf_css_content' );


/**
*
* @since 0.1
* @updated 0.2
*
* Position sidebar
* By setting a priority of '1' on this I can make sure it appears before other stuff attached to this hook - cool!
*
*/
function my_wf_css_sidebar() {

	wflux_display::wf_css('size=quarter&id=sidebar&last=y&divoutput=TRUE');

}
add_action( 'wfsidebar_before_all', 'my_wf_css_sidebar', 1 );




/**
*
* @since 0.1
* @updated 0.1
*
* Common closing div
* You need to make sure you close off your divs that you opened in the above 2 functions!
* No need to repeat yourself, just use one and use the hooks at add_action
*
*/
function my_wf_css_close_div() {
	echo '</div>';
}
add_action( 'wfsidebar_after_all', 'my_wf_css_close_div' );
add_action( 'wfmain_after_all_content', 'my_wf_css_close_div' );

?>